﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master"
    CodeBehind="EditNews.aspx.vb" Inherits="Phila.EditNews" %>
    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Add/Edit News</h1>
    <table width="100%" align="center" cellpadding="2" cellspacing="2">
        <tr>
            <td colspan="2" align="center">
                <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>
            </td>
        </tr>
        <tr>
            <td width="180px">
                <b>Title</b>
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" MaxLength="500" CssClass="form-text width400"></asp:TextBox>
                <span class="red">*</span>
                <asp:RequiredFieldValidator ID="reqName" runat="server" ControlToValidate="txtTitle"
                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Title" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <b>Date</b>
            </td>
            <td>
                <asp:TextBox ID="txtDate" runat="server" CssClass="form-text width150 datepicker"></asp:TextBox>
                <span class="red">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDate"
                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Date" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td width="180px">
                <b>Description</b>
            </td>
            <td>
                <cc1:Editor ID="txtDescription" runat="server" Height="300px" Width="100%" />
            </td>
        </tr>
        <tr>
            <td width="180px">
                <b>IsActive</b>
            </td>
            <td>
                <asp:CheckBox ID="chkActive" runat="server" Checked="true"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="180px">
                <b>IsArchive</b>
            </td>
            <td>
                <asp:CheckBox ID="chkArchive" runat="server" Checked="false"></asp:CheckBox>
            </td>
        </tr>
        <tr>
            <td width="180px">
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="submit" CssClass="form-button" />&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="form-button" />
            </td>
        </tr>
        <tr>
            <td width="180px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
                                <asp:ScriptManager ID="ScriptManager1" runat="server">
                                </asp:ScriptManager>
</asp:Content>
